//
//  BasErrors.h
//  Useful error constants
//  2006, John Wiggins
//
// This program is free software; you can redistribute it and/or modify  
// it under the terms of the GNU General Public License as published by  
// the Free Software Foundation; either version 2 of the License, or     
// (at your option) any later version.                                   
// 
// This program is distributed in the hope that it will be useful,       
// but WITHOUT ANY WARRANTY; without even the implied warranty of        
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
// GNU General Public License for more details.                          
//     
//     You should have received a copy of the GNU General Public License     
//     along with this program; if not, write to the                         
//         Free Software Foundation, Inc.,                                       
//         59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.  
//-------------------------------------------------------------
#ifndef BAS_ERRORS_H
#define BAS_ERRORS_H
//-------------------------------------------------------------
#define GE_NO_ERROR 0
#define GE_ERROR_BASE -2000
#define GE_NO_MEMORY GE_ERROR_BASE-1
#define GE_BAD_TYPE GE_ERROR_BASE-2
#define GE_NAME_NOT_FOUND GE_ERROR_BASE-3
#define GE_BAD_INDEX GE_ERROR_BASE-4
#define GE_BAD_VALUE GE_ERROR_BASE-5

// ipc port errors
#define GE_BAD_PORT_ID GE_ERROR_BASE-6
#define GE_NAME_COLLISION GE_ERROR_BASE-7
#define GE_BUFFER_TOO_SMALL GE_ERROR_BASE-8
//-------------------------------------------------------------
#endif // BAS_ERRORS_H

